package Domain;

import java.io.Serializable;
import java.util.Date;

public class CommentBean implements Serializable{
	private UserBean user;
	private String text;
	private Date date;
	private int commentId;
	
	public CommentBean() {}

	public void setdate(Date date) {
		this.date = date;
	}
	
	public Date getdate() {
		return date;
	}
	public String getAuthorName(){
        return user.getuserName();
    }
	public void settext(String text) {
		this.text = text;
	}

	public String gettext() {
		return text;
	}
	
	public void setuser(UserBean user) {
		this.user = user;
	}
	
	public UserBean getuser() {
		return user;
	}
	
	public int getcommentId(){
		return commentId;
	}
	
	public void setcommentId(int commentId){
		this.commentId = commentId;
	}
}
